package yoursense.util;

import java.util.Comparator;

import yoursense.Bean.LV_Bean;

public class SortByHeat implements Comparator {

	public int compare(Object o1, Object o2) {
		LV_Bean l1= (LV_Bean) o1;
		LV_Bean l2=(LV_Bean) o2;
		if(l1.getCommentNum()<l2.getCommentNum())
			return 1;
		return 0;
	}

}
